﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Demo.Framework.GAC.Library;

namespace Demo.Framework.GAC
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {                
                //if (args[0] == "Weak")
                //{
                //    LoadWeakAssembly();
                //}
                //else if (args[0] == "Strong")
                //{
                    
                //}

                Console.WriteLine("Executing strong assembly");
                LoadStrongAssembly();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                Console.Read();
            }
            
        }

        //static void LoadWeakAssembly()
        //{
        //    var obj = new MyClass();
        //    Console.WriteLine(obj.GetData());            
        //}

        static void LoadStrongAssembly()
        {
            var obj = new Demo.Framework.GAC.Library.Strong.MyClass();
            Console.WriteLine(obj.GetData());
        }

    }
}
